# 8、有能力的同学可以用循环的方式做出石头剪刀布的游戏并且输入中文
import random

player = int(input("请输入你要出的选项：石头(0) 剪刀(1) 布(2)"))
computer = random.randint(0,2)
print("玩家: %s 电脑: %s" % (player, computer))
if (player == 0 and computer == 1) \
        or (player == 1 and computer == 2) \
        or (player == 2 and computer == 0):
    print("恭喜你，玩家胜利！！！")
elif player == computer:
    print("平局")
else:
    print("电脑胜利")